﻿@model IEnumerable<B4Deal.Models.KHUYENMAI>

@{
    ViewBag.Title = "Deals1";
}

<h2>Deals1</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            LoaiKM
        </th>
        <th>
            TenKM
        </th>
        <th>
            DonGiaCu
        </th>
        <th>
            DonGiaMoi
        </th>
        <th>
            BatDauKM
        </th>
        <th>
            KetThucKM
        </th>
        <th>
            MoTa
        </th>
        <th>
            DiemNoiBat
        </th>
        <th>
            DKSuDung
        </th>
        <th>
            GioiThieuChiTiet
        </th>
        <th>
            DoanhNghiep
        </th>
        <th>
            HinhAnh
        </th>
        <th>
            ClipQuangCao
        </th>
        <th>
            HinhThucGiaoSP
        </th>
        <th>
            TinhTrang
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.LoaiKM)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TenKM)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DonGiaCu)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DonGiaMoi)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.BatDauKM)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.KetThucKM)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MoTa)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DiemNoiBat)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DKSuDung)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.GioiThieuChiTiet)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DoanhNghiep)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.HinhAnh)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ClipQuangCao)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.HinhThucGiaoSP)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TinhTrang)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.MaKM }) |
            @Html.ActionLink("Details", "Details", new { id=item.MaKM }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.MaKM })
        </td>
    </tr>
}

</table>
